package com.itcc.dao;

import com.itcc.entity.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductDao {
    long selectCountByTid(String tid) throws SQLException;

    List<Product> selectProductByPage(int page, int pageSize, String tid) throws SQLException;

    Product selectProductByPid(String pid) throws SQLException;

    List<Product> selectProduct() throws SQLException;

    void insertProduct(Product product) throws SQLException;

    void deleteByPid(String pid) throws SQLException;

    void updateByPid(Product product) throws SQLException;
}
